package com.eightbears.beboy.entity;

/**
 * Created by Bao on 2017/7/12.
 */

public class ValidOrderEntity {

    private String message;
    private String status_code;
    private OrderInfo data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStatus_code() {
        return status_code;
    }

    public void setStatus_code(String status_code) {
        this.status_code = status_code;
    }

    public OrderInfo getData() {
        return data;
    }

    public void setData(OrderInfo data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ValidOrderEntity{" +
                "message='" + message + '\'' +
                ", status_code='" + status_code + '\'' +
                ", data=" + data +
                '}';
    }

    public static class OrderInfo {
        private String id;
        private String user_id;
        private String shop_id;
        private String coupon_id;
        private String order_id;
        private String code;
        private String amount;
        private String status;
        private String type;
        private String created_at;
        private Coupon coupon;
        private Order order;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getCoupon_id() {
            return coupon_id;
        }

        public void setCoupon_id(String coupon_id) {
            this.coupon_id = coupon_id;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public Coupon getCoupon() {
            return coupon;
        }

        public void setCoupon(Coupon coupon) {
            this.coupon = coupon;
        }

        public Order getOrder() {
            return order;
        }

        public void setOrder(Order order) {
            this.order = order;
        }

        @Override
        public String toString() {
            return "OrderInfo{" +
                    "id='" + id + '\'' +
                    ", user_id='" + user_id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", coupon_id='" + coupon_id + '\'' +
                    ", order_id='" + order_id + '\'' +
                    ", code='" + code + '\'' +
                    ", amount='" + amount + '\'' +
                    ", status='" + status + '\'' +
                    ", type='" + type + '\'' +
                    ", created_at='" + created_at + '\'' +
                    ", coupon=" + coupon +
                    ", order=" + order +
                    '}';
        }
    }



    public static class Coupon {
        private String id;
        private String shop_id;
        private String title;
        private String content;
        private String cover;
        private String price;
        private String discount_price;
        private String status;
        private String rec_num;
        private String start_at;
        private String end_at;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getDiscount_price() {
            return discount_price;
        }

        public void setDiscount_price(String discount_price) {
            this.discount_price = discount_price;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getRec_num() {
            return rec_num;
        }

        public void setRec_num(String rec_num) {
            this.rec_num = rec_num;
        }

        public String getStart_at() {
            return start_at;
        }

        public void setStart_at(String start_at) {
            this.start_at = start_at;
        }

        public String getEnd_at() {
            return end_at;
        }

        public void setEnd_at(String end_at) {
            this.end_at = end_at;
        }

        @Override
        public String toString() {
            return "Coupon{" +
                    "id='" + id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", title='" + title + '\'' +
                    ", content='" + content + '\'' +
                    ", cover='" + cover + '\'' +
                    ", price='" + price + '\'' +
                    ", discount_price='" + discount_price + '\'' +
                    ", status='" + status + '\'' +
                    ", rec_num='" + rec_num + '\'' +
                    ", start_at='" + start_at + '\'' +
                    ", end_at='" + end_at + '\'' +
                    '}';
        }
    }

    public static class Order{
        private String id;
        private String channel;
        private String total_amount;
        private String receipt_amount;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getChannel() {
            return channel;
        }

        public void setChannel(String channel) {
            this.channel = channel;
        }

        public String getTotal_amount() {
            return total_amount;
        }

        public void setTotal_amount(String total_amount) {
            this.total_amount = total_amount;
        }

        public String getReceipt_amount() {
            return receipt_amount;
        }

        public void setReceipt_amount(String receipt_amount) {
            this.receipt_amount = receipt_amount;
        }

        @Override
        public String toString() {
            return "Order{" +
                    "id='" + id + '\'' +
                    ", channel='" + channel + '\'' +
                    ", total_amount='" + total_amount + '\'' +
                    ", receipt_amount='" + receipt_amount + '\'' +
                    '}';
        }
    }
}
